package com.iw.adoms.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.iw.core.orm.hibernate.BaseEntity;

@Entity
@Table(name = "consumer")
public class Consumer extends BaseEntity {
	private String addrArea;// 地区(addr_area)
	private String addrCity;// 城市(addr_city)
	private String addrProvince;// 省份(addr_province)
	private String fullName;// 用户姓名(full_name)
	private String mobile;// 手机(mobile)
	private String password;// 登陆密码(password)
	private String addrRegion;// 县/区(addr_region)
	private String addrDetail;// 联系地址(addr_detail)
	private Date registerDate;// 注册日期(register_date)
	private String sex;// 性别(sex)
	private String email;// 邮箱(email)
	private String zipCode;// 邮编(zip_code)
	private String cardType;// 证件类型(card_type)
	private String cardCode;// 证件号码(card_code)

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "register_department_id")
	private Department registerDepartment;// 注册部门(department)
	private String phone;// 电话(phone)
	private String memo;// 备注(memo)

	public String getAddrArea() {
		return addrArea;
	}

	public void setAddrArea(String addrArea) {
		this.addrArea = addrArea;
	}

	public String getAddrCity() {
		return addrCity;
	}

	public void setAddrCity(String addrCity) {
		this.addrCity = addrCity;
	}

	public String getAddrProvince() {
		return addrProvince;
	}

	public void setAddrProvince(String addrProvince) {
		this.addrProvince = addrProvince;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getAddrRegion() {
		return addrRegion;
	}

	public void setAddrRegion(String addrRegion) {
		this.addrRegion = addrRegion;
	}

	public String getAddrDetail() {
		return addrDetail;
	}

	public void setAddrDetail(String addrDetail) {
		this.addrDetail = addrDetail;
	}

	public Date getRegisterDate() {
		return registerDate;
	}

	public void setRegisterDate(Date registerDate) {
		this.registerDate = registerDate;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public String getCardCode() {
		return cardCode;
	}

	public void setCardCode(String cardCode) {
		this.cardCode = cardCode;
	}

	public Department getRegisterDepartment() {
		return registerDepartment;
	}

	public void setRegisterDepartment(Department registerDepartment) {
		this.registerDepartment = registerDepartment;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}